package com.usst.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.usst.entity.Tag;
import com.usst.repository.TagRepository;
import com.usst.service.TagService;

@Service
public class TagServiceImpl implements TagService{
	
	@Autowired
	private TagRepository tagRepo;

	@Override
	public Tag save(Tag tag) {
		return tagRepo.save(tag);
	}

	@Override
	public Tag update(Tag tag){
		return tagRepo.save(tag);
	}

	@Override
	@Transactional
	public void delete(Tag tag) {
		tagRepo.delete(tag);
	}

}
